﻿<%@ Page language="c#" Codebehind="Timetable.aspx.cs" AutoEventWireup="false" Inherits="zsproject.page.Timetable" %> 
<%@ Import Namespace="eap.share" %>
<%@ Import Namespace="zsproject.page" %>
<%
	//---------------------------------------------------------------//
	string page=Req.getPara(Request,"page");
	string mainPage=Sys.fieldGet(page,1,"_");
	string actionPage=Sys.fieldGet(page,1,"_")+"_action";
	string SCRIPT_NAME=AdminLib.getSimpleRequestURL(Request);
	AdminUser user = (AdminUser)Session["_user"];

	string actlist=(string)output["actlist"];
	int pageRowNum = 20;
	int pageNum = 1;
	if(Req.getPara(Request,"n") != "")
	{
	  pageNum = Convert.ToInt32(Req.getPara(Request,"n").Trim());
	  pageRowNum = Convert.ToInt32(((AdminUser)Session["_user"])["cfg_list"]);      
	}
	//---------------------------------------------------------------//

	string t=Req.getPara(Request,"t");
	string WEB_PAGE =Request.Url.ToString().Replace("&",",");
	string l=Req.getPara(Request,"l");
	string p=Req.getPara(Request,"p");
	string a=Req.getPara(Request,"a"); 
	string tt=Req.getPara(Request,"tt"); 
	string group_id=Req.getPara(Request,"group_id"); 
	//查询属于下属
	if(group_id=="")
	{
		//查询所有管辖区域的企业
		group_id= user["dept_id"];
	}
	
	string method=Req.getPara(Request,"method");
	string method_name=Req.getPara(Request,"method_name");
%>
<html>
<head>
<title><%=AdminLib.STR_TITLE%></title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
<meta http-equiv='Content-Type' content='text/html; charset=gbk'>
<link rel='stylesheet' href='<%=user.getSkinPath()%>css/eap.css'>
<script language='javascript' src='..<%=AdminLib.EAP_PATH%>/eap.js'></script>
<link rel='stylesheet' href='../skin/zsproject.css'>
<script language='javascript' src='../skin/zsproject.js'></script>
<script charset="UTF-8" src="../tools/kindeditor/kindeditor.js"></script>
<script language='javascript' src="../skin/validation.js"></script>
<script language="javascript" type="text/javascript" src="../tools/My97DatePicker/WdatePicker.js"></script>

<style type="text/css" >
.formitem{background-color: #CBCBCC;}
.formitem th{height:22px; background-color:#E0F1FB;padding-left:3px;text-align:right;}
.formitem td{padding:3px;background-color:#ffffff; line-height:20px;}
</style>

</head>
<!-------------------------------------------框架-------------------------------------->
<%if(t.IndexOf("frame")!=-1){%>
<frameset cols="180,*" frameborder="0" border="0" framespacing="0">
	<frame name="tree" src="../page/tree.aspx?page=<%=t%>&tt=<%=tt%>&l=<%=l%>&p=<%=p%>&a=<%=a%>&f=<%=WEB_PAGE.Replace(t,"")%>" frameborder=yes>
	<frame name="right" src="../page/firm.aspx?page=List&method=<%=method%>" frameborder=yes>
</frameset>
<%return;}%>
<!-------------------------------------------框架-------------------------------------->
<body class="bodyframe" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">  
<!--#INCLUDE FILE="../epass/verify.aspx"-->
 
<%//信息管理
 if(page=="List"){
   string search_title =(string)output["search_title"];
   System.Data.DataRowCollection list=(System.Data.DataRowCollection)output["list"];
   AdminList lst=(AdminList)output["lst"];
%>

<table class="linetitle" border="0" width="100%" cellspacing="0" cellpadding="1">
<tr>
   <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="pagetoobar">
         <tr  height="26">
            <td><strong>&nbsp;&nbsp;排课列表</strong></td>
            <td align="right" style="display:none"><input class="ButtonCss" onmouseover="this.className='ButtonCss_mouseover'" onmouseout="this.className='ButtonCss_mouseout'" id="btn_new" type="button" value="新增"  onclick="window.document.location.href='<%=SCRIPT_NAME%>?page=Form&method=edit';"></td>
         </tr>
      </table>
   </td>
</tr>
</table>

<table class=tbsearch border=0 width=100% cellspacing=0 cellpadding=1 style="">
<form name=frmMain method="get" action="<%=lst.getQryURL()%>"><%=lst.getQryURL2()%>
<tr><td>
关键字查询<input type=text size=30 maxlength=151 name="k" value="<%=lst.getKey()%>">
<input type=submit class="ButtonCss" onmouseover="this.className='ButtonCss_mouseover'" onmouseout="this.className='ButtonCss_mouseout'" value="查询" title="<%=search_title%>"> 
</td></tr>
</form>
</table>

<table class="tbsearch" border="0" width="100%" cellspacing="0" cellpadding="1">
	<tr>
		<td>
			<nolayer>
				<iframe name="_action" height="16" width="100%" marginwidth="0" marginheight="0" scrolling="no"
					frameborder="0" src='../admin/office.aspx?page=_action'></iframe>
			</nolayer>
		</td>
	</tr>
</table>
<script type='text/javascript'>popup_path='../admin/popup.aspx';</script>
 
<fieldset class="tfieldset" >

	<legend>
	<table width="100%" cellpadding="0" cellspacing="0">
	   <tr><td class="title"><span>&nbsp;信息列表</span></td> 
	   <td align="right"><span>
		 <input class="ButtonCss" onmouseover="this.className='ButtonCss_mouseover'" onmouseout="this.className='ButtonCss_mouseout'" id="btn_new" type="button" value="新增"  onclick="window.document.location.href='<%=SCRIPT_NAME+"?page=Form&method=edit&group_id="+group_id%>'">
		<input type=button value="删除" title="删除上述选中的记录" class="ButtonCss" onmouseover="this.className='ButtonCss_mouseover'" onmouseout="this.className='ButtonCss_mouseout'" onClick="confirmdel_var(frmg)">
	</span></td></tr>
	</table>
	</legend>

	<div id="tbl-container" style="height:340px">
		<table id="datagrid" border="0" width="100%" cellPadding=0 cellSpacing="0" bgcolor="#99ccff">
			<form  method="POST" action="<%=SCRIPT_NAME+"?page="+actionPage%>" target=_action id="frmg" name="frmg">
			<thead>
				<tr class=linetitle align=center>    
					<th><input type="checkbox" name="chkall" value="on" onClick="checkall(this.form)"  title="全选(删除)"></th>
					<th nowrap><%=lst.getOrder(user,"id","ID","序号")%></th>
					<th nowrap>操作</th>
					<!--------获取标题-------->
					<th nowrap><%=lst.getOrder(user,"t_specialty_id","t_specialty_id","所属专业")%></th>
					<th nowrap><%=lst.getOrder(user,"t_grade_id","t_grade_id","所属年级")%></th>
					<th nowrap><%=lst.getOrder(user,"t_class_id","t_class_id","所属班级")%></th>
					<th nowrap><%=lst.getOrder(user,"t_year_id","t_year_id","年度")%></th>
					<th nowrap><%=lst.getOrder(user,"t_semester_id","t_semester_id","学期")%></th>
					<th nowrap><%=lst.getOrder(user,"weeks","weeks","周数")%></th>
					<th nowrap><%=lst.getOrder(user,"add_time","add_time","录入时间")%></th>
					<th nowrap><%=lst.getOrder(user,"add_user","add_user","录入人员")%></th>
				</tr>
			</thead>
			
			<tbody>	
				<%for(int index=0;list!=null&&index<list.Count;index++){
					System.Data.DataRow map=list[index];
					string id=map["id"].ToString();
				%>
				<tr align=center class=<%if(index % 2 ==1){%>datalineone<%}else{%>datalineone<%}%> onmouseover="dataline_over(this)" onmouseout="dataline_out(this)" onclick="dataline_click(this)">    
					<td nowrap width=60px><input type="checkbox" name="chk_id" id="chk_id" value="<%=map["id"]%>" title="选择(删除)"></td>
					<td nowrap width=60px><%=index+1+(pageNum-1)*pageRowNum%></td>
					<td nowrap width="60px"><input type="button" class="ButtonCss" value="编辑" onclick="window.location.href='<%=SCRIPT_NAME+"?page=Form&method="+method+"&d="+id%>'"></td>
					<!--------获取信息-------->
					<td nowrap align="center"><%=map["specialty_name"].ToString()%></td>
					<td nowrap align="center"><%=map["grade_name"].ToString()%></td>
					<td nowrap align="center"><%=map["class_name"].ToString()%></td>
					<td nowrap align="center"><%=map["t_year_id"].ToString()%></td>
					<td nowrap align="center"><%=map["t_semester_id"].ToString()%></td>
					<td nowrap align="center"><%=map["weeks"].ToString()%></td>
					<td nowrap align="center"><%=map["add_time"].ToString()%></td>
					<td nowrap align="center"><%=map["add_user"].ToString()%></td>
				</tr>
				<%}%>
				<tr class=lineaction style="display:none">
				<td colspan=14 align="left">
				<input type=hidden name=action value="delete">
				<input type=hidden name=d value="">
				<input type=hidden name=reload value="">
				<input type=button value="删除" title="删除上述选中的记录" class="ButtonCss" onmouseover="this.className='ButtonCss_mouseover'" onmouseout="this.className='ButtonCss_mouseout'" onClick="javascript:if(confirm_selected(this.form)){ action.value='delete'; reload.value='reload'; submit(); }">
				</td>
				</tr>
				
			</tbody>
			</form>
		</table>
	</div>
</fieldset>

<table width=100% cellspacing=0 cellpadding=1>
	<tr height=22 align=right>
		<td align="center"> <script>if(document.getElementById("dataGrid").rows.length<=2){document.write("<font color='#ff0000'>查询无结果</font>");}</script></td>
		<td><%=lst.getPageBar()%>页码<%=lst.getPageList()%></td>
	</tr>
</table>
<%}%>

<%
//新增修改页面
if(page=="Form"){
	string edit="";
	System.Data.DataRow map=(System.Data.DataRow)output["map"];
	System.Data.DataRow mapList=(System.Data.DataRow)output["mapList"];
	System.Data.DataRowCollection listAtt=(System.Data.DataRowCollection)output["listAtt"];

	string d=Req.getPara(Request,"d");
	string id=d;
	//定义除了主键以外的字段
	string t_specialty_id="";
	string t_grade_id="";
	string t_class_id="";
	string t_year_id="";
	string t_semester_id="";
	string weeks="";
	string add_time="";
	string add_user="";
	if(map!=null)
	{
		//获取数据库信息
		id=map["id"].ToString();
		t_specialty_id=map["t_specialty_id"].ToString();
		t_grade_id=map["t_grade_id"].ToString();
		t_class_id=map["t_class_id"].ToString();
		t_year_id=map["t_year_id"].ToString();
		t_semester_id=map["t_semester_id"].ToString();
		weeks=map["weeks"].ToString();
		add_time=map["add_time"].ToString();
		add_user=map["add_user"].ToString();

	}else
	{
		//新增,默认值
	}
%>

<table class="linetitle" border="0" width="100%" cellspacing="0" cellpadding="1">
<tr>
   <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="pagetoobar">
         <tr height="26">
            <td><strong>&nbsp;&nbsp;排课信息</strong></td>
         </tr>
      </table>
   </td>
</tr>
</table>

<%=AdminLib.getIframe()%>

<table id="" class="formitem" cellspacing="1" cellpadding="0" align="center" border="0" style="background-color:#7F96BE;border-width:0px;width:100%; margin-top:5px">
<form id="frmMain"  name=frmMain method=post target="_action" enctype="multipart/form-data" action="<%=SCRIPT_NAME+"?page="+actionPage+"&d="+id%>">
	<tbody>
		<!--------获取控件--------->
		<tr>
			<th align="right">所属专业：</th>
			<td>
				<select id="t_specialty_id" name="t_specialty_id">
				<option value="">--请选择--</option>
				<%=AdminLib.getOptionSql("SELECT id as value,specialty_name as title from t_specialty where specialty_super !='' order by specialty_order",t_specialty_id)%>
				</select>
			</td>
			<th align="right">周数：</th>
			<td>
				<input type="text" id="weeks" name="weeks" value="<%=weeks%>" <%=edit%> style="WIDTH: 50%; TEXT-ALIGN: left;TEXT-VALIGN:middle">
			</td>
		</tr>
		<tr>
			<th align="right">所属年级：</th>
			<td>
				<select id="t_grade_id" name="t_grade_id">
				<option value="">--请选择--</option>
				<%=AdminLib.getOptionSql("SELECT id as value,grade_name as title from t_grade order by grade_name",t_grade_id)%>
				</select>
			</td>
			<th align="right">所属班级：</th>
			<td>
				<select id="t_class_id" name="t_class_id">
				<option value="">--请选择--</option>
				<%=AdminLib.getOptionSql("SELECT tb.id as value,grade_name+class_name as title from t_class tb join t_grade tg on tb.t_grade_id=tg.id order by grade_name",t_class_id)%>
				</select>
			</td>
		</tr>
		<tr>
			<th align="right">年度：</th>
			<td>
				<select id="t_year_id" name="t_year_id">
				<option value="">--请选择--</option>
				<%=AdminLib.getOptionSql("SELECT year_name as value,year_name as title from t_year order by year_name",t_year_id)%>
				</select>
			</td>
			<th align="right">学期：</th>
			<td>
				<select id="t_semester_id" name="t_semester_id">
				<option value="">--请选择--</option>
				<%=AdminLib.getOptionSql("SELECT semester_name as value,semester_name as title from t_semester order by semester_name",t_semester_id)%>
				</select>
			</td>
		</tr>
		
		<tr>
			<td width="10%"></td>
			<td width="40%"></td>
			<td width="10%"></td>
			<td width="40%"></td>
		</tr>
	
						
		<tr style="display:none">
			<!--隐藏(hidden)-->
			<input type="hidden" id="action" name="action" value="">
			<input type=hidden id="reload" checked name="reload" value='<%=SCRIPT_NAME+"?page=Form&method=edit"%>' >
		</tr>
	      
		<tr>
			<script>
				//操作						
				function toEdit()
				{	
					document.getElementById("action").value="edit";								
					document.getElementById("reload").value='<%=SCRIPT_NAME+"?page=Form&method="+method+"&d={$id}"%>'
				}
			</script>
			<!--按钮-->
			<td colspan="43" align="center">
				<input type="submit" name="edit" class="ButtonCss" value="保存" title="保存操作" onclick="return toEdit();">
				<input type="button" class="ButtonCss" onclick='window.history.back();' value="返 回" />
			</td>
		</tr>
	</tbody>
</table>
</form>




<%
	string sql="";
	
	sql="select * from tb_dict where sort_id='168' order by idx";
	System.Data.DataRowCollection list_sections=DAO.sqlList(sql);
	
	
	sql="select * from tb_dict where sort_id='169' order by idx";
	System.Data.DataRowCollection list_week=DAO.sqlList(sql);
	
	sql=string.Format(@"select ttl.*,tt.teacher_name,tc.course_name from t_timetable_list ttl left join t_teacher tt on ttl.t_teacher_id=tt.id  left join t_course tc on ttl.t_course_id=tc.id where t_timetable_id='{0}' and t_timetable_id!=''",d);
	System.Data.DataTable table_list=DAO.sqlTable(sql);
%>
<table id="" class="formitem" cellspacing="1" cellpadding="0" align="center" border="0" style="background-color:#7F96BE;border-width:0px;width:100%; margin-top:5px">
	<tbody>
		<!--------获取控件--------->
		<tr>
			<th style="TEXT-ALIGN:center;TEXT-VALIGN:middle">节数</th>
			<%for(int index=0;list_week!=null&&index<list_week.Count;index++){
				System.Data.DataRow map_week=list_week[index];
					string week_name=map_week["content"].ToString();
			%>
				<th style="TEXT-ALIGN:center;TEXT-VALIGN:middle"><%=week_name%></th>
			<%}%>
		</tr>
		
		<%for(int ii=0;list_sections!=null&&ii<list_sections.Count;ii++){
			System.Data.DataRow map_sections=list_sections[ii];
				string sections_name=map_sections["content"].ToString();
		%>
		<tr>
			<th style="TEXT-ALIGN:center;TEXT-VALIGN:middle"><%=sections_name%></th>
			
			<%for(int jj=0;list_week!=null&&jj<list_week.Count;jj++){
				System.Data.DataRow map_week=list_week[jj];
					string week_name=map_week["content"].ToString();
					string sql_cond="1=1";
					sql_cond+=" and classroom_time_week='"+week_name+"'";
					sql_cond+=" and classroom_time_sections='"+sections_name+"'";					
					System.Data.DataRow[] drs=table_list.Select(sql_cond);
			%>
			
				<%if(drs.Length>0){
					string teacher_name=drs[0]["teacher_name"].ToString();
					string course_name=drs[0]["course_name"].ToString();
					string classroom=drs[0]["classroom"].ToString();
					string classroom_time_sections=drs[0]["classroom_time_sections"].ToString();
					string classroom_time_week=drs[0]["classroom_time_week"].ToString();
					string remark=drs[0]["remark"].ToString();
					
				%>
					<td ondblclick="dblclick('<%=sections_name%>','<%=week_name%>')">
					<%=course_name+" "+teacher_name+" "+classroom+" "+remark%>
					</td>
				<%}else{%>
					<td ondblclick="dblclick('<%=sections_name%>','<%=week_name%>')">
					
					</td>
				<%}%>
			<%}%>
			
		</tr>
			
		<%}%>
			
		
		<tr>
			<%for(int index=0;list_week!=null&&index<list_week.Count;index++){
			%>
				<td width="<%=100/(list_week.Count+1)%>%"></td>
			<%}%>
			<td width="<%=100/(list_week.Count+1)%>%"></td>
		</tr>
	
		
	</tbody>
</table>


<%
	System.Data.DataRow map_list=(System.Data.DataRow)output["map_list"];
	string list_id="";
	string list_classroom_time_week="";
	string list_classroom_time_sections="";
	string list_t_teacher_id="";
	string list_t_course_id="";
	string list_classroom="";
	string list_remark="";
	if(map_list!=null)
	{
		list_id=map_list["id"].ToString();
		list_classroom_time_week=map_list["classroom_time_week"].ToString();
		list_classroom_time_sections=map_list["classroom_time_sections"].ToString();
		list_t_teacher_id=map_list["t_teacher_id"].ToString();
		list_t_course_id=map_list["t_course_id"].ToString();
		list_classroom=map_list["classroom"].ToString();
		list_remark=map_list["remark"].ToString();
	}
%>

<table id="" class="formitem" cellspacing="1" cellpadding="0" align="center" border="0" style="background-color:#7F96BE;border-width:0px;width:100%; margin-top:5px">
<form id="frmList"  name=frmList method=post target="_action" enctype="multipart/form-data" action="<%=SCRIPT_NAME+"?page="+actionPage+"&d="+id%>">
	<tbody>
		<!--------获取控件--------->
		<tr>
			<th align="right">任课星期：</th>
			<td>
				<select id="classroom_time_week" name="classroom_time_week" onchange="javascript:getTableList();">
				<option value="">--请选择--</option>
				<!--多选按钮select-->
				<%=AdminLib.getDictOption("time_week",list_classroom_time_week,"1")%>
				</select>
			</td>
			
			<th align="right">任课节数：</th>
			<td>
				<select id="classroom_time_sections" name="classroom_time_sections" onchange="javascript:getTableList();">
				<option value="">--请选择--</option>
				<!--多选按钮select-->
				<%=AdminLib.getDictOption("time_sections",list_classroom_time_sections,"1")%>
				</select>
			</td>
			<th align="right">任课老师：</th>
			<td>
				<select id="t_teacher_id" name="t_teacher_id">
				<option value="">--请选择--</option>
				<%=AdminLib.getOptionSql("SELECT id as value,teacher_name as title from t_teacher",list_t_teacher_id)%>
				</select>
				<input type="button" value="选择"   class="ButtonCss"  onClick="selectTeacher()"> 
			</td>
			
			<td rowspan=2>
				<input type="submit" name="edit" class="ButtonCss" value="保存" title="保存操作" onclick="return toSave();">
				<input type="submit" name="edit" class="ButtonCss" value="删除" title="保存操作" onclick="return toDel();">
			</td>
			
		</tr>
		
		<tr>
			<th align="right">所属课程：</th>
			<td>
				<select id="t_course_id" name="t_course_id">
				<option value="">--请选择--</option>
				<%=AdminLib.getOptionSql("SELECT id as value,course_name as title from t_course order by course_name",list_t_course_id)%>
				</select>
			</td>
			
			<th align="right">所属教室：</th>
			<td>
				<select id="classroom" name="classroom">
				<option value="">--请选择--</option>
				<%=AdminLib.getOptionSql("SELECT classroom_name as value,classroom_name as title from t_classroom order by classroom_name",list_classroom)%>
				</select>
			</td>
		
			
			<th align="right">备注：</th>
			<td>
				<input type="text" id="remark" name="remark" value="<%=list_remark%>" style="WIDTH: 100%; TEXT-ALIGN: left;TEXT-VALIGN:middle">
			</td>
			
			
			
		</tr>
		
		<tr>
			<td width="10%"></td>
			<td width="20%"></td>
			<td width="10%"></td>
			<td width="20%"></td>
			<td width="10%"></td>
			<td width="20%"></td
			<td width="10%"></td>
		</tr>
	
						
		<tr style="display:none">
			<!--隐藏(hidden)-->
			
			<input type="hidden" id="t_year_id" name="t_year_id" value="<%=t_year_id%>">
			<input type="hidden" id="t_semester_id" name="t_semester_id" value="<%=t_semester_id%>">
			
			<input type="hidden" id="list_id" name="list_id" value="<%=list_id%>">
			<input type="hidden" id="action" name="action" value="">
			<input type=hidden id="reload" checked name="reload" value='<%=SCRIPT_NAME+"?page=Form&method=edit"%>' >
		</tr>
	      
		<tr>
			<script>
				function dblclick(classroom_time_sections,classroom_time_week)
				{
					frmList.classroom_time_week.value=classroom_time_week; 
					frmList.classroom_time_sections.value=classroom_time_sections; 
					getTableList();
				}
				
				function selectTeacher()
				{
					var classroom_time_week=frmList.classroom_time_week.value; 
					var classroom_time_sections=frmList.classroom_time_sections.value; 
					
					var url='page/SelectItem.aspx?page=teacherList'+'&this_classroom_time_week='+classroom_time_week+'&this_classroom_time_sections='+classroom_time_sections;
					
					selectPageCallBack('../',url,600,400,'getTeacher');
				}
				
			
				function getTeacher(val)
				{
					if(val=='') return;
					var list = val.split("|");
					frmList.t_teacher_id.value=list[0]; 
					frmList.t_course_id.value=list[1]; 					
					//alert(val)
				}
		
				function getTableList()
				{   
					var t_timetable_id='<%=d%>'; 
					var classroom_time_week=frmList.classroom_time_week.value; 
					var classroom_time_sections=frmList.classroom_time_sections.value; 
					
					var para="&t_timetable_id="+t_timetable_id+"&classroom_time_week="+classroom_time_week+"&classroom_time_sections="+classroom_time_sections;
					if(classroom_time_week!="" && classroom_time_week!="")
					{
						var url="../admin/ajaxRequest.aspx?page=getTableList"+para;       
						var returnvalue=getresponseText(url+"&"+Math.random());		
						var list = returnvalue.split(","); 
						
						if(list!="" && list!="undefined")
						{
							frmList.list_id.value=list[0]; 
							frmList.t_teacher_id.value=list[1]; 
							frmList.t_course_id.value=list[2]; 
							frmList.classroom.value=list[3]; 
							frmList.remark.value=list[4]; 
						}
						else
						{
							frmList.list_id.value="";
							frmList.t_teacher_id.value="";
							frmList.t_course_id.value="";
							frmList.classroom.value="";
							frmList.remark.value="";
						}
					}
				    	
				}
	
				//操作						
				function toSave()
				{	
					frmList.action.value="save";
					frmList.reload.value='<%=SCRIPT_NAME+"?page=Form&method="+method+"&d={$id}&list_id={$list_id}"%>';
				}
				
				function toDel()
				{	
					frmList.action.value="del";
					frmList.reload.value='<%=SCRIPT_NAME+"?page=Form&method="+method+"&d={$id}"%>';
				}
			</script>
			
		</tr>
	</tbody>
</table>
</form>
<%}%>

</body>
</html>